
import 'package:bookshelf/entity/reader_entity.dart';

enum Task { borrow, toMine }

class CurrentTaskEntity{

  String? uid;
  String? uName;
  Task? task;
  ReaderEntity? readerEntity;

  //1=读者卡 2=身份证 3=人脸
  int authType = 0;

  // 静态变量
  static final CurrentTaskEntity _singleton = CurrentTaskEntity._internal();

  // 工厂方法
  factory CurrentTaskEntity() {
    return _singleton;
  }

  // 私有构造函数
  CurrentTaskEntity._internal();


  void clear(){
    authType = 0;
    uid = null;
    uName = null;
    task = null;
    readerEntity = null;
  }


}